package com.milo.java8.gui.notHelloWorld;

import javax.swing.*;
import java.awt.*;

/**
 * @author milogenius
 * @date 2020-06-15 21:27
 */
public class NoteHelloWorldComponent extends JComponent {
    public static final int MESSAGE_X = 75;
    public static final int MESSAGE_Y = 100;

    public static final int DEFAULT_WIDTH = 300;
    public static final int DEFAULT_HEIGHT = 200;

    @Override
    public void paintComponent(Graphics g){
        g.drawString("Not a Hello,World program",MESSAGE_X,MESSAGE_Y);
    }
    @Override
    public Dimension getPreferredSize() {
        return new Dimension(DEFAULT_WIDTH,DEFAULT_HEIGHT);
    }




}
